package com.swe.chums.dao;

import com.swe.chums.dao.model.WebResourceType;
import com.swe.chums.dao.model.WebResourceTypePk;
import com.swe.chums.dao.exceptions.WebResourceTypeDaoException;
import java.util.List;

public interface WebResourceTypeDao
{
	/**
	 * Method 'insert'
	 * 
	 * @param dto
	 * @return WebResourceTypePk
	 */
	public WebResourceTypePk insert(WebResourceType dto);

	/** 
	 * Updates a single row in the web_resource_type table.
	 */
	public void update(WebResourceTypePk pk, WebResourceType dto) throws WebResourceTypeDaoException;

	/** 
	 * Deletes a single row in the web_resource_type table.
	 */
	public void delete(WebResourceTypePk pk) throws WebResourceTypeDaoException;

	/** 
	 * Returns all rows from the web_resource_type table that match the criteria 'id = :id'.
	 */
	public WebResourceType findByPrimaryKey(int id) throws WebResourceTypeDaoException;

	/** 
	 * Returns all rows from the web_resource_type table that match the criteria ''.
	 */
	public List<WebResourceType> findAll() throws WebResourceTypeDaoException;

	/** 
	 * Returns all rows from the web_resource_type table that match the criteria 'id = :id'.
	 */
	public List<WebResourceType> findWhereIdEquals(int id) throws WebResourceTypeDaoException;

	/** 
	 * Returns all rows from the web_resource_type table that match the criteria 'name = :name'.
	 */
	public List<WebResourceType> findWhereNameEquals(String name) throws WebResourceTypeDaoException;

	/** 
	 * Returns the rows from the web_resource_type table that matches the specified primary-key value.
	 */
	public WebResourceType findByPrimaryKey(WebResourceTypePk pk) throws WebResourceTypeDaoException;

}
